<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="col-md-8 well">
    <c:if test="${not empty message}">
        <div class="alert alert-dismissable alert-success">
            <p>${message}</p>
        </div>
    </c:if>
    <h3>Edit grant-app</h3>
    <form:form action="" modelAttribute="grant" commandName="grant"
               id="editForm" method='POST' class="form-horizontal">

        <div class="form-group">
            <label for="grantName" class="col-sm-3 control-label" id="grantName">Name</label>

            <div class="col-sm-9">
                <form:input path="grantName" class="form-control"
                            placeholder="Change grant name"/>
            </div>
        </div>


        <div class="form-group">
            <label for="requestedMoney" class="col-sm-3 control-label"
                   id="requestedMoney">Money</label>

            <div class="col-sm-9">
                <form:input path="requestedMoney" class="form-control"
                            placeholder="Change requested money"/>
            </div>
        </div>

        <div class="form-group">
            <label for="requestDescription1" class="col-sm-3 control-label"
                   id="requestDescription1">Description</label>

            <div class="col-sm-9">
                <form:textarea path="requestDescription"></form:textarea>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-4 col-sm-8">
                <button type="submit" class="btn btn-primary">Edit</button>
            </div>
        </div>

    </form:form>
</div>